public class Ruta {
        private String localitatePlecare;
        private String localitateSosire;
        private int distanta;
        private boolean skip;
        private boolean fluvial;
        private boolean rutier;
        private boolean feroviar;
        
        public Ruta(String localitatePlecare, String localitateSosire,
                        int distanta, boolean skip, boolean fluvial, boolean rutier,
                        boolean feroviar) {
                super();
                this.localitatePlecare = localitatePlecare;
                this.localitateSosire = localitateSosire;
                this.distanta = distanta;
                this.skip = skip;
                this.fluvial = fluvial;
                this.rutier = rutier;
                this.feroviar = feroviar;
        }
        public String getLocalitatePlecare() {
                return localitatePlecare;
        }
        public void setLocalitatePlecare(String localitatePlecare) {
                this.localitatePlecare = localitatePlecare;
        }
        public String getLocalitateSosire() {
                return localitateSosire;
        }
        public void setLocalitateSosire(String localitateSosire) {
                this.localitateSosire = localitateSosire;
        }
        public int getDistanta() {
                return distanta;
        }
        public void setDistanta(int distanta) {
                this.distanta = distanta;
        }
        public boolean isSkip() {
                return skip;
        }
        public void setSkip(boolean skip) {
                this.skip = skip;
        }
        public boolean isFluvial() {
                return fluvial;
        }
        public void setFluvial(boolean fluvial) {
                this.fluvial = fluvial;
        }
        public boolean isRutier() {
                return rutier;
        }
        public void setRutier(boolean rutier) {
                this.rutier = rutier;
        }
        public boolean isFeroviar() {
                return feroviar;
        }
        public void setFeroviar(boolean feroviar) {
                this.feroviar = feroviar;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                Ruta other = (Ruta) obj;
                if (distanta != other.distanta)
                        return false;
                if (feroviar != other.feroviar)
                        return false;
                if (fluvial != other.fluvial)
                        return false;
                if (localitatePlecare == null) {
                        if (other.localitatePlecare != null)
                                return false;
                } else if (!localitatePlecare.equals(other.localitatePlecare))
                        return false;
                if (localitateSosire == null) {
                        if (other.localitateSosire != null)
                                return false;
                } else if (!localitateSosire.equals(other.localitateSosire))
                        return false;
                if (rutier != other.rutier)
                        return false;
                if (skip != other.skip)
                        return false;
                return true;
        }
        
        

}
